package util;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

public class ImagePanel extends JPanel 
{
	private static final long serialVersionUID = 1L;

	private Image image;

	public ImagePanel(Image image) 
	{
		this.image = image;
	}

	@Override
	public void paintComponent(Graphics g) 
	{
		super.paintComponent(g);

		g.drawImage(image, 0, 0, getWidth(), getHeight(), this);
	}
}